package com.baizhi.service.impl;

import com.baizhi.dao.StudentDao;
import com.baizhi.Student;
import com.baizhi.service.StudentService;

import java.util.List;

public class StudentServiceImpl implements StudentService {
    private StudentDao sd;
    @Override
    public List<Student> findAll() {
        List<Student> adll = sd.findAdll();
        return adll;
    }

    @Override
    public List<Student> findStudnet() {
        List<Student> students = sd.selectList(null);
        return students;
    }

    public StudentDao getSd() {
        return sd;
    }

    public void setSd(StudentDao sd) {
        this.sd = sd;
    }
}
